home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / OpenGL / glusphere.z / glusphere
Encoding:
Text File  |  2001-04-17  |  3.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. gggglllluuuuSSSSpppphhhheeeerrrreeee((((3333GGGG))))                  OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                  gggglllluuuuSSSSpppphhhheeeerrrreeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      gggglllluuuuSSSSpppphhhheeeerrrreeee - draw a sphere
  10.  
  11.  
  12. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      void gggglllluuuuSSSSpppphhhheeeerrrreeee( GLUquadric* _q_u_a_d,
  14.                      GLdouble _r_a_d_i_u_s,
  15.                      GLint _s_l_i_c_e_s,
  16.                      GLint _s_t_a_c_k_s )
  17.  
  18.  
  19. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  20.      _q_u_a_d    Specifies the quadrics object (created with gggglllluuuuNNNNeeeewwwwQQQQuuuuaaaaddddrrrriiiicccc).
  21.  
  22.      _r_a_d_i_u_s  Specifies the radius of the sphere.
  23.  
  24.      _s_l_i_c_e_s  Specifies the number of subdivisions around the _z axis (similar
  25.              to lines of longitude).
  26.  
  27.      _s_t_a_c_k_s  Specifies the number of subdivisions along the _z axis (similar to
  28.              lines of latitude).
  29.  
  30. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  31.      gggglllluuuuSSSSpppphhhheeeerrrreeee draws a sphere of the given radius centered around the origin.
  32.      The sphere is subdivided around the _z axis into slices and along the _z
  33.      axis into stacks (similar to lines of longitude and latitude).
  34.  
  35.      If the orientation is set to GGGGLLLLUUUU____OOOOUUUUTTTTSSSSIIIIDDDDEEEE (with gggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccOOOOrrrriiiieeeennnnttttaaaattttiiiioooonnnn),
  36.      then any normals generated point away from the center of the sphere.
  37.      Otherwise, they point toward the center of the sphere.
  38.  
  39.      If texturing is turned on (with gggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccTTTTeeeexxxxttttuuuurrrreeee), then texture
  40.      coordinates are generated so that _t ranges from 0.0 at z = -radius to 1.0
  41.      at z = radius (_t increases linearly along longitudinal lines), and _s
  42.      ranges from 0.0 at the +_y axis, to 0.25 at the +_x axis, to 0.5 at the -_y
  43.      axis, to 0.75 at the -_x axis, and back to 1.0 at the +_y axis.
  44.  
  45. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  46.      gggglllluuuuCCCCyyyylllliiiinnnnddddeeeerrrr, gggglllluuuuDDDDiiiisssskkkk, gggglllluuuuNNNNeeeewwwwQQQQuuuuaaaaddddrrrriiiicccc, gggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk,
  47.      gggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccOOOOrrrriiiieeeennnnttttaaaattttiiiioooonnnn, gggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccTTTTeeeexxxxttttuuuurrrreeee
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.